<template>
	<div>
		<div class="wrap">
			<span class="detail" @click="detail">商品详情</span>
			<span class="assess" @click="assess">商品评价</span>
			<span></span>
		</div>
	</div>
</template>

<script>
	export default{
		name:"goodsdetail",
		methods:{
			detail:function(){
				$(".detail").css({"border-top":"solid 2px green","border-bottom":"none","background-color":"white","color":"green"})
				$(".assess").css({"border-top":"#e4e4e4 solid 1px","background-color":"#f4f4f4","color":"black"})
				window.location.href="#/Description/1"
			},
			assess:function(){
				$(".assess").css({"border-top":"solid 2px green","border-bottom":"none","background-color":"white","color":"green"})
				$(".detail").css({"border-top":"#e4e4e4 solid 1px","background-color":"#f4f4f4","color":"black"})
				window.location.href="#/Order"
			}
		}
	}
</script>

<style scoped>
	.wrap{
		font-size: 0;
		width: 1280px;
		height: 50px;
		background-color: #f4f4f4;
		margin-bottom: 40px;
	}
	.wrap>span{
		display: inline-block;
		line-height: 48px;
		border: #e4e4e4 solid 1px;
		font-size: 17px;
		padding: 0 25px;
	}
	.wrap>span:nth-child(3){
		height: 48px;
		width: 988px;
		vertical-align: top;
	}
</style>